package xyz.zhouxf.rpc.enumeration;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.omg.CORBA.UNKNOWN;

/**
 * @author zhouxf
 * @date 2022/8/12
 */
@Getter
@AllArgsConstructor
public enum RpcError {
    SERVICE_IS_NULL("服务没有实例"),
    SERVICE_NOT_IMPLEMENTS_INTERFACE("服务未实现接口"),
    SERVICE_NOT_FOUND("服务未找到"),
    UNKNOWN_PROTOCOL("未知的协议"),
    UNKNOWN_PACKAGE("未知的数据包"),
    UNKNOWN_SERIALIZER("未知的序列化器"),
    CONNECT_TO_REGISTRY_FAILED("连接注册中心失败"),
    SERVICE_REGISTER_FAILED("服务注册失败"),
    SERVICE_FIND_FAILED("服务发现失败"),
    SERVICE_SCAN_NOT_FOUND("启动类没有ServiceScan注解"),
    UNKNOWN_ERROR("未知错误");
    private final String message;
}
